home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / role / AMScen_0_9.lha / AMScen / proving2.m < prev    next >
Text File  |  1995-01-21  |  49KB  |  1,288 lines

  1. /*
  2.  * Amiga MUD
  3.  *
  4.  * Copyright (c) 1995 by Chris Gray
  5.  */
  6.  
  7. /*
  8.  * proving2.m - deep sewer level of the proving grounds.
  9.  */
  10.  
  11. private tp_proving2 CreateTable().
  12. use tp_proving2
  13.  
  14. define tp_proving2 r_sewerShaft2 CreateThing(r_provingTunnelD).
  15. SetupRoom(r_sewerShaft2, "in a vertical shaft",
  16.     "Rusty metal wrungs in the wall allow you to climb up here, and a "
  17.     "small opening heads south.").
  18. Connect(r_sewerShaft1, r_sewerShaft2, D_DOWN).
  19. Scenery(r_sewerShaft2, "wrung;metal.opening;small").
  20.  
  21. define tp_proving2 r_sewerShaft4 CreateThing(r_provingTunnelD).
  22. SetupRoom(r_sewerShaft4, "in a vertical shaft",
  23.     "Rusty metal wrungs in the wall allow you to climb up here, and a "
  24.     "small opening heads north.").
  25. Connect(r_sewerShaft3, r_sewerShaft4, D_DOWN).
  26. Scenery(r_sewerShaft4, "wrung;metal.opening;small").
  27.  
  28. define tp_proving2 r_sewerChamber1 CreateThing(r_provingTunnelD).
  29. SetupRoom(r_sewerChamber1, "in a large chamber",
  30.     "This chamber is quite large, but fairly low, and the ceiling is held "
  31.     "up by numerous stone pillars. You can see small openings in the "
  32.     "north, south, east and west walls.").
  33. Connect(r_sewerShaft2, r_sewerChamber1, D_SOUTH).
  34. Connect(r_sewerShaft4, r_sewerChamber1, D_NORTH).
  35. AutoGraphics(r_sewerChamber1, AutoTunnelChamber).
  36. Scenery(r_sewerChamber1, "ceiling.pillar;numerous,stone.opening;small.wall").
  37.  
  38. define tp_proving2 r_sewerTunnel1 CreateThing(r_provingTunnelD).
  39. SetupRoomP(r_sewerTunnel1, "in a low east-west tunnel", "").
  40. Connect(r_sewerChamber1, r_sewerTunnel1, D_WEST).
  41.  
  42. define tp_proving2 r_sewerTunnel2 CreateThing(r_provingTunnelD).
  43. SetupRoomP(r_sewerTunnel2, "in a low east-west tunnel", "").
  44. Connect(r_sewerTunnel1, r_sewerTunnel2, D_WEST).
  45.  
  46. define tp_proving2 r_sewerTunnel3 CreateThing(r_provingTunnelD).
  47. SetupRoomP(r_sewerTunnel3, "in a low east-west tunnel", "").
  48. Connect(r_sewerTunnel2, r_sewerTunnel3, D_WEST).
  49.  
  50. define tp_proving2 r_sewerTunnel4 CreateThing(r_provingTunnelD).
  51. SetupRoomP(r_sewerTunnel4, "in a low north-south-east tunnel Tee", "").
  52. Connect(r_sewerTunnel3, r_sewerTunnel4, D_WEST).
  53.  
  54. define tp_proving2 r_sewerTunnel5 CreateThing(r_provingTunnelD).
  55. SetupRoomP(r_sewerTunnel5, "in a low north-south tunnel", "").
  56. Connect(r_sewerTunnel4, r_sewerTunnel5, D_NORTH).
  57.  
  58. define tp_proving2 r_sewerTunnel6 CreateThing(r_provingTunnelD).
  59. SetupRoomP(r_sewerTunnel6, "at a south and east corner in the low tunnel","").
  60. Connect(r_sewerTunnel5, r_sewerTunnel6, D_NORTH).
  61.  
  62. define tp_proving2 r_sewerTunnel7 CreateThing(r_provingTunnelD).
  63. SetupRoomP(r_sewerTunnel7, "at a south-east-west Tee in the low tunnel", "").
  64. Connect(r_sewerTunnel6, r_sewerTunnel7, D_EAST).
  65.  
  66. define tp_proving2 r_sewerTunnel8 CreateThing(r_provingTunnelD).
  67. SetupRoomP(r_sewerTunnel8, "at a south-east-west Tee in the low tunnel","").
  68. Connect(r_sewerTunnel7, r_sewerTunnel8, D_EAST).
  69.  
  70. define tp_proving2 r_sewerTunnel8_5 CreateThing(r_provingTunnelD).
  71. SetupRoomP(r_sewerTunnel8_5, "at a dead-end in the low tunnel",
  72.     "The tunnel ends here in a blank wall. You can only go to the north.").
  73. Connect(r_sewerTunnel8, r_sewerTunnel8_5, D_SOUTH).
  74. Scenery(r_sewerTunnel8_5, "wall;blank").
  75.  
  76. define tp_proving r_sewerChamber2 CreateThing(r_provingTunnelD).
  77. SetupRoomP(r_sewerChamber2, "in a large chamber",
  78.     "The ceiling of this chamber is of medium height, and is held up by "
  79.     "numerous stone columns. There is a small opening in the north wall, and "
  80.     "a dark hole in the floor near a back corner.").
  81. Connect(r_sewerTunnel7, r_sewerChamber2, D_SOUTH).
  82. AutoGraphics(r_sewerChamber2, AutoTunnelChamber).
  83. r_sewerChamber2@p_rDownMessage := "You drop through the small hole.".
  84. r_sewerChamber2@p_rDownOMessage := "drops through the small hole.".
  85. Scenery(r_sewerChamber2,
  86.     "ceiling,floor."
  87.     "column;numerous,stone."
  88.     "opening;small."
  89.     "wall;back,north."
  90.     "hole;dark."
  91.     "corner;back").
  92. define tp_proving2 o_goblinDagger CreateThing(nil).
  93. o_goblinDagger@p_oName := "dagger;goblin".
  94. o_goblinDagger@p_oDesc :=
  95.     "The goblin dagger has some unreadable runes scratched into the hilt, "
  96.     "and is of pretty shoddy workmanship. It is quite serviceable, however.".
  97. o_goblinDagger@p_oHome := r_lostAndFound.
  98. SetupWeapon(o_goblinDagger, 0, 0, 0, 0, 0, 5, 9).
  99. SetThingStatus(o_goblinDagger, ts_readonly).
  100. define tp_proving2 proc daggerQuestDesc()string:
  101.     "Bring me a goblin dagger."
  102. corp;
  103. define tp_proving2 proc daggerQuestGive()status:
  104.     thing dagger;
  105.  
  106.     dagger := It();
  107.     if Parent(dagger) = o_goblinDagger then
  108.     GiveToQuestor("goblin dagger");
  109.     QuestThing@p_QuestActive := daggerQuestGive;
  110.     succeed
  111.     elif dagger@p_oName = "dagger;goblin" then
  112.     GiveToQuestor("goblin dagger");
  113.     QuestThing@p_QuestActive := daggerQuestGive;
  114.     SPrint(TrueMe(), "Questor is not impressed.\n");
  115.     fail
  116.     else
  117.     continue
  118.     fi
  119. corp;
  120. define tp_proving2 proc daggerQuestHint()string:
  121.     "Don't be afraid of the dark. Look beneath the dirty places."
  122. corp;
  123. QuestGive("Dagger", daggerQuestDesc, daggerQuestGive, daggerQuestHint).
  124. r_sewerChamber2@p_rLastVisit := 0.
  125. define tp_proving2 proc chamber2Enter(thing room)void:
  126.     thing me, monster, dagger;
  127.     int now;
  128.  
  129.     now := Time();
  130.     me := Me();
  131.     if me@p_pStandard and now - r_sewerChamber2@p_rLastVisit >= 300 then
  132.     r_sewerChamber2@p_rLastVisit := now;
  133.     monster := CreateMonster(me, m_goblin, r_sewerChamber2);
  134.     /* This, unfortunately, is not really an adequate test. It is possible
  135.        to get more than one dagger if the goblin with the dagger is killed
  136.        outside this chamber, and the dagger is dropped there, but not
  137.        picked up by the player. I saw it happen. */
  138.     if not DoneQuest(daggerQuestGive) and
  139.         CarryingChild(me, o_goblinDagger) = nil and
  140.         ChildHere(r_sewerChamber2, o_goblinDagger) = nil
  141.     then
  142.         dagger := CreateThing(o_goblinDagger);
  143.         SetThingStatus(dagger, ts_public);
  144.         GiveThing(dagger, SysAdmin);
  145.         dagger@p_oCreator := me;
  146.         dagger@p_oCarryer := monster;
  147.         AddTail(monster@p_pCarrying, dagger);
  148.         monster@p_pWeapon := dagger;
  149.     fi;
  150.     ignore CreateMonster(me, m_goblin, r_sewerChamber2);
  151.     fi;
  152. corp;
  153. AddAnyEnterAction(r_sewerChamber2, chamber2Enter, false).
  154.  
  155. define tp_proving2 r_sewerTunnel9 CreateThing(r_provingTunnelD).
  156. SetupRoomP(r_sewerTunnel9, "at a north and west corner in the low tunnel","").
  157. Connect(r_sewerTunnel4, r_sewerTunnel9, D_SOUTH).
  158.  
  159. define tp_proving2 r_sewerTunnel10 CreateThing(r_provingTunnelD).
  160. SetupRoomP(r_sewerTunnel10,"at a south and east corner in the low tunnel","").
  161. Connect(r_sewerTunnel9, r_sewerTunnel10, D_WEST).
  162.  
  163. define tp_proving2 r_sewerTunnel10_5 CreateThing(r_provingTunnelD).
  164. SetupRoomP(r_sewerTunnel10_5, "in a low north-south tunnel", "").
  165. Connect(r_sewerTunnel10, r_sewerTunnel10_5, D_SOUTH).
  166.  
  167. define tp_proving2 r_sewerTunnel11 CreateThing(r_provingTunnelD).
  168. SetupRoomP(r_sewerTunnel11, "in a low north-south tunnel", "").
  169. Connect(r_sewerTunnel10_5, r_sewerTunnel11, D_SOUTH).
  170.  
  171. define tp_proving2 r_sewerTunnel12 CreateThing(r_provingTunnelD).
  172. SetupRoomP(r_sewerTunnel12,"at a north and east corner in the low tunnel","").
  173. Connect(r_sewerTunnel11, r_sewerTunnel12, D_SOUTH).
  174.  
  175. define tp_proving2 r_sewerTunnel13 CreateThing(r_provingTunnelD).
  176. SetupRoomP(r_sewerTunnel13, "in a low east-west tunnel", "").
  177. Connect(r_sewerTunnel12, r_sewerTunnel13, D_EAST).
  178.  
  179. define tp_proving2 r_sewerTunnel14 CreateThing(r_provingTunnelD).
  180. SetupRoomP(r_sewerTunnel14,"at a north and west corner in the low tunnel","").
  181. Connect(r_sewerTunnel13, r_sewerTunnel14, D_EAST).
  182.  
  183. define tp_proving2 r_sewerTunnel15 CreateThing(r_provingTunnelD).
  184. SetupRoomP(r_sewerTunnel15, "at a south-east-west Tee in the low tunnel", "").
  185. Connect(r_sewerTunnel14, r_sewerTunnel15, D_NORTH).
  186.  
  187. define tp_proving2 r_sewerChamber3 CreateThing(r_provingTunnelD).
  188. SetupRoomP(r_sewerChamber3, "in a large chamber",
  189.     "This high-ceilinged chamber shows signs of animal habitation. The floor "
  190.     "is littered with twigs, grass, bones, and other less pleasant things. "
  191.     "The stone pillars supporting the dimly visible ceiling are rank with "
  192.     "oozing slime. A small passage leads out of the east wall.").
  193. Connect(r_sewerTunnel15, r_sewerChamber3, D_WEST).
  194. AutoGraphics(r_sewerChamber3, AutoTunnelChamber).
  195. Scenery(r_sewerChamber3,
  196.     "ceiling."
  197.     "pillar;numerous,stone."
  198.     "passage;small."
  199.     "wall."
  200.     "sign."
  201.     "floor."
  202.     "slime;oozing."
  203.     "litter."
  204.     "twig,grass,bone,thing;less,pleasant").
  205. r_sewerChamber3@p_rLastVisit := 0.
  206. define tp_proving2 proc chamber3Enter(thing room)void:
  207.     thing me;
  208.     int i, now;
  209.  
  210.     now := Time();
  211.     me := Me();
  212.     if me@p_pStandard and now - r_sewerChamber3@p_rLastVisit >= 300 then
  213.     r_sewerChamber3@p_rLastVisit := now;
  214.     for i from 0 upto Random(5) + 4 do
  215.         ignore CreateMonster(me, m_largeRat, r_sewerChamber3);
  216.     od;
  217.     fi;
  218. corp;
  219. AddAnyEnterAction(r_sewerChamber3, chamber3Enter, false).
  220.  
  221. define tp_proving2 r_sewerTunnel16 CreateThing(r_provingTunnelD).
  222. SetupRoomP(r_sewerTunnel16, "in a low east-west tunnel", "").
  223. Connect(r_sewerTunnel15, r_sewerTunnel16, D_EAST).
  224.  
  225. define tp_proving2 r_sewerTunnel17 CreateThing(r_provingTunnelD).
  226. SetupRoomP(r_sewerTunnel17, "in a low east-west tunnel", "").
  227. Connect(r_sewerTunnel16, r_sewerTunnel17, D_EAST).
  228.  
  229. define tp_proving2 r_sewerTunnel18 CreateThing(r_provingTunnelD).
  230. SetupRoomP(r_sewerTunnel18, "in a low east-west tunnel", "").
  231. Connect(r_sewerTunnel17, r_sewerTunnel18, D_EAST).
  232.  
  233. define tp_proving2 r_sewerTunnel19 CreateThing(r_provingTunnelD).
  234. SetupRoomP(r_sewerTunnel19, "in a low east-west tunnel", "").
  235. Connect(r_sewerTunnel18, r_sewerTunnel19, D_EAST).
  236.  
  237. define tp_proving2 r_sewerTunnel20 CreateThing(r_provingTunnelD).
  238. SetupRoomP(r_sewerTunnel20,"at a north and west corner in the low tunnel","").
  239. Connect(r_sewerTunnel19, r_sewerTunnel20, D_EAST).
  240.  
  241. define tp_proving2 r_sewerTunnel21 CreateThing(r_provingTunnelD).
  242. SetupRoomP(r_sewerTunnel21,"at a south and west corner in the low tunnel","").
  243. Connect(r_sewerTunnel20, r_sewerTunnel21, D_NORTH).
  244.  
  245. define tp_proving2 r_sewerTunnel22 CreateThing(r_provingTunnelD).
  246. SetupRoomP(r_sewerTunnel22, "at a north-east-west Tee in the low tunnel", "").
  247. Connect(r_sewerTunnel21, r_sewerTunnel22, D_WEST).
  248.  
  249. define tp_proving2 r_sewerTunnel23 CreateThing(r_provingTunnelD).
  250. SetupRoomP(r_sewerTunnel23, "at an end in the low tunnel",
  251.     "You can go to the east or down a ladder.").
  252. Connect(r_sewerTunnel22, r_sewerTunnel23, D_WEST).
  253. Scenery(r_sewerTunnel23, "ladder").
  254.  
  255. define tp_proving2 r_sewerTunnel24 CreateThing(r_provingTunnelD).
  256. SetupRoomP(r_sewerTunnel24, "in a low north-south tunnel", "").
  257. Connect(r_sewerTunnel22, r_sewerTunnel24, D_NORTH).
  258.  
  259. define tp_proving2 r_sewerTunnel25 CreateThing(r_provingTunnelD).
  260. SetupRoomP(r_sewerTunnel25, "at a south and west corner in a low tunnel", "").
  261. Connect(r_sewerTunnel24, r_sewerTunnel25, D_NORTH).
  262. Connect(r_sewerTunnel25, r_sewerChamber1, D_WEST).
  263.  
  264. define tp_proving2 r_sewerTunnel26 CreateThing(r_provingTunnelD).
  265. SetupRoomP(r_sewerTunnel26, "at an end in a very low tunnel",
  266.     "You can go to the north or up a ladder.").
  267. Connect(r_sewerTunnel23, r_sewerTunnel26, D_DOWN).
  268. Scenery(r_sewerTunnel26, "ladder").
  269.  
  270. define tp_proving2 r_sewerTunnel27 CreateThing(r_provingTunnelD).
  271. SetupRoomP(r_sewerTunnel27, "in a very low north-south tunnel",
  272.     "There is a crack in the west wall. You can hear noises coming from it.").
  273. Connect(r_sewerTunnel26, r_sewerTunnel27, D_NORTH).
  274. Scenery(r_sewerTunnel27, "crack").
  275. r_sewerTunnel27@p_oListenString :=
  276.     "You can't really identify the noises, but there seems to be two parts "
  277.     "to them - one soft and fairly continuous, and the other slightly louder "
  278.     "and sporadic.".
  279. r_sewerTunnel27@p_rWestEMessage := "comes out of the crack.".
  280. r_sewerTunnel27@p_rEnterMessage := "comes out of the crack.".
  281.  
  282. define tp_proving2 r_sewerTunnel28 CreateThing(r_provingTunnelD).
  283. SetupRoomP(r_sewerTunnel28, "in a very low north-south tunnel", "").
  284. Connect(r_sewerTunnel27, r_sewerTunnel28, D_NORTH).
  285.  
  286. define tp_proving2 r_sewerTunnel29 CreateThing(r_provingTunnelD).
  287. SetupRoomP(r_sewerTunnel29, "in a very low north-south tunnel", "").
  288. Connect(r_sewerTunnel28, r_sewerTunnel29, D_NORTH).
  289.  
  290. define tp_proving2 r_sewerTunnel30 CreateThing(r_provingTunnelD).
  291. SetupRoomP(r_sewerTunnel30, "in a very low north-south tunnel", "").
  292. Connect(r_sewerTunnel29, r_sewerTunnel30, D_NORTH).
  293.  
  294. define tp_proving2 r_sewerTunnel31 CreateThing(r_provingTunnelD).
  295. SetupRoomP(r_sewerTunnel31, "at an end in the very low tunnel",
  296.     "You can go to the south or up a ladder.").
  297. Connect(r_sewerTunnel30, r_sewerTunnel31, D_NORTH).
  298. Scenery(r_sewerTunnel31, "ladder").
  299.  
  300. define tp_proving2 r_sewerTunnel32 CreateThing(r_provingTunnelD).
  301. SetupRoomP(r_sewerTunnel32, "at an end in the low tunnel",
  302.     "You can go to the south or down a ladder.").
  303. Connect(r_sewerTunnel31, r_sewerTunnel32, D_UP).
  304. Scenery(r_sewerTunnel32, "ladder").
  305.  
  306. define tp_proving2 r_sewerTunnel33 CreateThing(r_provingTunnelD).
  307. SetupRoomP(r_sewerTunnel33, "at a north-east-west Tee in the low tunnel", "").
  308. Connect(r_sewerTunnel32, r_sewerTunnel33, D_SOUTH).
  309.  
  310. define tp_proving2 r_sewerTunnel34 CreateThing(r_provingTunnelD).
  311. SetupRoomP(r_sewerTunnel34, "in a low east-west tunnel", "").
  312. Connect(r_sewerTunnel33, r_sewerTunnel34, D_WEST).
  313. Connect(r_sewerTunnel8, r_sewerTunnel34, D_EAST).
  314.  
  315. define tp_proving2 r_sewerTunnel35 CreateThing(r_provingTunnelD).
  316. SetupRoomP(r_sewerTunnel35, "in a low east-west tunnel", "").
  317. Connect(r_sewerTunnel33, r_sewerTunnel35, D_EAST).
  318.  
  319. define tp_proving2 r_sewerTunnel36 CreateThing(r_provingTunnelD).
  320. SetupRoomP(r_sewerTunnel36, "at the end of a crack",
  321.     "There is a hole in floor here, from which the noises are coming. It "
  322.     "sounds like a lot of things quietly rubbing against each other, along "
  323.     "with an occasional hissing.").
  324. HUniConnect(r_sewerTunnel27, r_sewerTunnel36, D_WEST).
  325. HUniConnect(r_sewerTunnel27, r_sewerTunnel36, D_ENTER).
  326. UniConnect(r_sewerTunnel36, r_sewerTunnel27, D_EAST).
  327. UniConnect(r_sewerTunnel36, r_sewerTunnel27, D_EXIT).
  328. AutoGraphics(r_sewerTunnel36, AutoPaths).
  329. AutoPens(r_sewerTunnel36, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  330. Scenery(r_sewerTunnel36, "crack.hole").
  331. r_sewerTunnel36@p_oListenString :=
  332.     "The rubbing noise is quite strange - it comes and goes in intensity, "
  333.     "and seems to consist of many quieter noises. The hissing is infrequent "
  334.     "and also varies from soft to loud.".
  335. r_sewerTunnel36@p_rDownEMessage := "crawls out of the pit.".
  336. r_sewerTunnel36@p_rExitEMessage := "crawls out of the pit.".
  337.  
  338. define tp_proving2 r_sewerChamber4 CreateThing(r_provingTunnelD).
  339. SetupRoomP(r_sewerChamber4, "in a snake pit",
  340.     "The pit is littered with bones and small bits of eggshell.").
  341. Connect(r_sewerTunnel36, r_sewerChamber4, D_DOWN).
  342. UniConnect(r_sewerChamber4, r_sewerTunnel36, D_EXIT).
  343. AutoGraphics(r_sewerChamber4, AutoTunnelChamber).
  344. Scenery(r_sewerChamber4, "bone.shell;egg.eggshell.bit;shell,small,bits,of").
  345. r_sewerChamber4@p_rLastVisit := 0.
  346. define tp_proving2 proc chamber4Enter(thing room)void:
  347.     thing me, monster;
  348.     int i, now;
  349.  
  350.     now := Time();
  351.     me := Me();
  352.     if me@p_pStandard and now - r_sewerChamber4@p_rLastVisit >= 300 then
  353.     r_sewerChamber4@p_rLastVisit := now;
  354.     for i from 0 upto Random(10) + 10 do
  355.         monster :=
  356.         case Random(20)
  357.         incase 0:
  358.             m_hugeSnake
  359.         incase 1:
  360.         incase 2:
  361.         incase 3:
  362.             m_largeSnake
  363.         default:
  364.             m_snake
  365.         esac;
  366.         ignore CreateMonster(me, monster, r_sewerChamber4);
  367.     od;
  368.     if FindName(me@p_pCarrying, p_oName, "armour") = fail and
  369.         FindName(me@p_pCarrying, p_oName, "mail") = fail
  370.     then
  371.         DepositClone(r_sewerChamber4, o_leatherArmour);
  372.     fi;
  373.     fi;
  374. corp;
  375. AddAnyEnterAction(r_sewerChamber4, chamber4Enter, false).
  376.  
  377. define tp_proving2 r_sewerTunnel37 CreateThing(r_provingTunnelD).
  378. SetupRoomP(r_sewerTunnel37, "in a low east-west tunnel", "").
  379. Connect(r_sewerTunnel35, r_sewerTunnel37, D_EAST).
  380.  
  381. define tp_proving2 r_sewerTunnel38 CreateThing(r_provingTunnelD).
  382. SetupRoomP(r_sewerTunnel38, "in a low east-west tunnel", "").
  383. Connect(r_sewerTunnel37, r_sewerTunnel38, D_EAST).
  384.  
  385. define tp_proving2 PR_CHAMBER_ID NextEffectId().
  386. define tp_proving2 proc drawChamber()void:
  387.  
  388.     if not KnowsEffect(nil, PR_CHAMBER_ID) then
  389.     DefineEffect(nil, PR_CHAMBER_ID);
  390.     GSetImage(nil, "pr_chamber");
  391.     IfFound(nil);
  392.         GShowImage(nil, "", 0, 0, 160, 100, 0, 0);
  393.     Else(nil);
  394.         GSetPen(nil, C_BLACK);
  395.         GAMove(nil, 140, 0);
  396.         GRectangle(nil, 19, 99, true);
  397.  
  398.         GSetPen(nil, C_DARK_GREY);
  399.         GAMove(nil, 0, 0);
  400.         GRectangle(nil, 139, 99, true);
  401.  
  402.         GSetPen(nil, C_LIGHT_GREY);
  403.         GAMove(nil, 10, 10);
  404.         GRectangle(nil, 119, 79, true);
  405.         GAMove(nil, 0, 21);
  406.         GRectangle(nil, 139, 10, true);
  407.         GAMove(nil, 0, 45);
  408.         GRectangle(nil, 139, 10, true);
  409.         GAMove(nil, 0, 69);
  410.         GRectangle(nil, 139, 10, true);
  411.         GAMove(nil, 33, 0);
  412.         GRectangle(nil, 10, 99, true);
  413.         GAMove(nil, 66, 0);
  414.         GRectangle(nil, 10, 99, true);
  415.         GAMove(nil, 99, 0);
  416.         GRectangle(nil, 10, 99, true);
  417.  
  418.         GSetPen(nil, C_MEDIUM_GREY);
  419.         GAMove(nil, 38, 33);
  420.         GRectangle(nil, 63, 34, true);
  421.     Fi(nil);
  422.     EndEffect();
  423.     fi;
  424.     CallEffect(nil, PR_CHAMBER_ID);
  425. corp;
  426.  
  427. define tp_proving2 CHAMBER_MAP_GROUP NextMapGroup().
  428.  
  429. define tp_proving2 r_chamberModel CreateThing(r_provingTunnel2).
  430. RoomName(r_chamberModel, "Large", "Chamber").
  431. r_chamberModel@p_MapGroup := CHAMBER_MAP_GROUP.
  432. r_chamberModel@p_rDrawAction := drawChamber.
  433. r_chamberModel@p_rEnterRoomDraw := EnterRoomDraw.
  434. r_chamberModel@p_rLeaveRoomDraw := LeaveRoomDraw.
  435. Scenery(r_chamberModel,
  436.     "chamber;large,rectangular."
  437.     "rock."
  438.     "passage;open."
  439.     "wall;outer."
  440.     "chamber;middle,of,the."
  441.     "structure;low,building-like,building,like."
  442.     "window;small,horizontal").
  443. SetThingStatus(r_chamberModel, ts_readonly).
  444.  
  445. define tp_proving2 proc makeChamber(int x, y; string name)thing:
  446.     thing chamber;
  447.  
  448.     chamber := CreateThing(r_chamberModel);
  449.     chamber@p_rName := name;
  450.     chamber@p_rContents := CreateThingList();
  451.     chamber@p_rExits := CreateIntList();
  452.     chamber@p_rCursorX := x;
  453.     chamber@p_rCursorY := y;
  454.     SetThingStatus(chamber, ts_wizard);
  455.     chamber
  456. corp;
  457.  
  458. define tp_proving2 r_chamberW makeChamber(19, 47,
  459.     "on the west side of the chamber").
  460. r_chamberW@p_rDesc :=
  461.     "This is a large rectangular chamber hewn from the rock. There are open "
  462.     "passages on all of the outer walls. The middle of the chamber is filled "
  463.     "with a low building-like structure which has small horizontal windows "
  464.     "but no visible door.".
  465. Connect(r_sewerTunnel38, r_chamberW, D_EAST).
  466.  
  467. define tp_proving2 r_chamberNW makeChamber(34, 22,
  468.     "in the north-west corner of the chamber").
  469. Connect(r_chamberW, r_chamberNW, D_NORTH).
  470.  
  471. define tp_proving2 r_chamberN makeChamber(68, 18,
  472.     "on the north side of the chamber").
  473. Connect(r_chamberNW, r_chamberN, D_EAST).
  474.  
  475. define tp_proving2 r_chamberNE makeChamber(102, 22,
  476.     "in the north-east corner of the chamber").
  477. Connect(r_chamberN, r_chamberNE, D_EAST).
  478.  
  479. define tp_proving2 r_chamberE makeChamber(113, 47,
  480.     "on the east side of the chamber").
  481. Connect(r_chamberNE, r_chamberE, D_SOUTH).
  482.  
  483. define tp_proving2 r_chamberSE makeChamber(102, 71,
  484.     "in the south-east corner of the chamber").
  485. Connect(r_chamberE, r_chamberSE, D_SOUTH).
  486.  
  487. define tp_proving2 r_chamberS makeChamber(68, 75,
  488.     "on the south side of the chamber").
  489. Connect(r_chamberSE, r_chamberS, D_WEST).
  490.  
  491. define tp_proving2 r_chamberSW makeChamber(34, 71,
  492.     "in the south-west corner of the chamber").
  493. Connect(r_chamberS, r_chamberSW, D_WEST).
  494. Connect(r_chamberW, r_chamberSW, D_SOUTH).
  495.  
  496. define tp_proving2 r_cell CreateThing(r_indoors).
  497. r_cell@p_rName := "in a small featureless room".
  498. r_cell@p_rDesc := "There is a small wooden cot against one wall.".
  499. AutoGraphics(r_cell, AutoOpenRoom).
  500. AutoPens(r_cell, C_DARK_GREY, C_LIGHT_GREY, C_LIGHT_GREY, 0).
  501. Scenery(r_cell, "cot;small,wooden").
  502. SetThingStatus(r_cell, ts_readonly).
  503.  
  504. define tp_proving2 proc makeCell(thing chamber; int dir)thing:
  505.     thing cell;
  506.  
  507.     cell := CreateThing(r_cell);
  508.     cell@p_rContents := CreateThingList();
  509.     cell@p_rExits := CreateIntList();
  510.     Connect(chamber, cell, dir);
  511.     UniConnect(cell, chamber, D_EXIT);
  512.     SetThingStatus(cell, ts_wizard);
  513.     cell
  514. corp;
  515.  
  516. ignore makeCell(r_chamberNW, D_WEST).
  517. ignore makeCell(r_chamberNW, D_NORTH).
  518. ignore makeCell(r_chamberN, D_NORTH).
  519. ignore makeCell(r_chamberNE, D_NORTH).
  520. ignore makeCell(r_chamberNE, D_EAST).
  521. define tp_proving2 r_cell1 makeCell(r_chamberSE, D_EAST).
  522. r_cell1@p_rDesc :=
  523.     "There is a small wooden cot against one wall, and a small hole in the "
  524.     "floor with a ladder leading down.".
  525. Scenery(r_cell1, "cot;small,wooden.ladder.hole;small").
  526. ignore makeCell(r_chamberSE, D_SOUTH).
  527. ignore makeCell(r_chamberS, D_SOUTH).
  528. ignore makeCell(r_chamberSW, D_SOUTH).
  529. ignore makeCell(r_chamberSW, D_WEST).
  530.  
  531. define tp_proving2 r_sewerTunnel39 CreateThing(r_provingTunnelD).
  532. SetupRoomP(r_sewerTunnel39, "at the end of a very low tunnel",
  533.     "You can go to the south or up a ladder.").
  534. Connect(r_cell1, r_sewerTunnel39, D_DOWN).
  535. Scenery(r_sewerTunnel39, "ladder").
  536.  
  537. define tp_proving2 r_sewerTunnel40 CreateThing(r_provingTunnelD).
  538. SetupRoomP(r_sewerTunnel40, "in a very low north-south tunnel", "").
  539. Connect(r_sewerTunnel39, r_sewerTunnel40, D_SOUTH).
  540.  
  541. define tp_proving2 r_sewerTunnel41 CreateThing(r_provingTunnelD).
  542. SetupRoomP(r_sewerTunnel41, "in a very low north-south tunnel", "").
  543. Connect(r_sewerTunnel40, r_sewerTunnel41, D_SOUTH).
  544.  
  545. define tp_proving2 r_sewerTunnel42 CreateThing(r_provingTunnelD).
  546. SetupRoomP(r_sewerTunnel42, "in a crossing of very low tunnels", "").
  547. Connect(r_sewerTunnel41, r_sewerTunnel42, D_SOUTH).
  548.  
  549. define tp_proving2 r_sewerTunnel43 CreateThing(r_provingTunnelD).
  550. SetupRoomP(r_sewerTunnel43, "in a very low east-west tunnel", "").
  551. Connect(r_sewerTunnel42, r_sewerTunnel43, D_WEST).
  552.  
  553. define tp_proving2 r_sewerTunnel44 CreateThing(r_provingTunnelD).
  554. SetupRoomP(r_sewerTunnel44,
  555.     "in a north and east corner in the very low tunnel", "").
  556. Connect(r_sewerTunnel43, r_sewerTunnel44, D_WEST).
  557.  
  558. define tp_proving2 r_sewerTunnel45 CreateThing(r_provingTunnelD).
  559. SetupRoomP(r_sewerTunnel45, "in a very low north-south tunnel", "").
  560. Connect(r_sewerTunnel44, r_sewerTunnel45, D_NORTH).
  561.  
  562. define tp_proving2 r_sewerTunnel46 CreateThing(r_provingTunnelD).
  563. SetupRoomP(r_sewerTunnel46, "in a very low north-south tunnel", "").
  564. Connect(r_sewerTunnel45, r_sewerTunnel46, D_NORTH).
  565.  
  566. define tp_proving2 r_sewerTunnel47 CreateThing(r_provingTunnelD).
  567. SetupRoomP(r_sewerTunnel47, "at the end of a very low tunnel",
  568.     "You can go to the south or up a ladder.").
  569. Connect(r_sewerTunnel46, r_sewerTunnel47, D_NORTH).
  570. Scenery(r_sewerTunnel47, "ladder").
  571.  
  572. define tp_proving2 r_sewerBuilding CreateThing(r_provingTunnelD).
  573. SetupRoomP(r_sewerBuilding, "in a small doorless room",
  574.     "This stone room has small horizontal windows looking out into a larger "
  575.     "space with many exits. The only exit from here is down a ladder.").
  576. Connect(r_sewerTunnel47, r_sewerBuilding, D_UP).
  577. AutoGraphics(r_sewerBuilding, AutoClosedRoom).
  578. Scenery(r_sewerBuilding,
  579.     "room;stone.window;small,horizontal.space;larger.ladder").
  580. define tp_proving2 proc sewerBuildingEnter(thing room)void:
  581.     if FindName(Me()@p_pCarrying, p_oName, "lamp") = fail then
  582.     DepositClone(r_sewerBuilding, o_oilLamp);
  583.     fi;
  584. corp;
  585. AddAnyEnterAction(r_sewerBuilding, sewerBuildingEnter, false).
  586.  
  587. define tp_proving2 r_sewerTunnel48 CreateThing(r_provingTunnelD).
  588. SetupRoomP(r_sewerTunnel48, "in a very low north-south tunnel", "").
  589. Connect(r_sewerTunnel42, r_sewerTunnel48, D_SOUTH).
  590.  
  591. define tp_proving2 r_sewerTunnel49 CreateThing(r_provingTunnelD).
  592. SetupRoomP(r_sewerTunnel49, "in a very low north-south tunnel", "").
  593. Connect(r_sewerTunnel48, r_sewerTunnel49, D_SOUTH).
  594.  
  595. define tp_proving2 r_sewerTunnel50 CreateThing(r_provingTunnelD).
  596. SetupRoomP(r_sewerTunnel50,
  597.     "in a north and east corner in the very low tunnel", "").
  598. Connect(r_sewerTunnel49, r_sewerTunnel50, D_SOUTH).
  599.  
  600. define tp_proving2 r_sewerTunnel51 CreateThing(r_provingTunnelD).
  601. SetupRoomP(r_sewerTunnel51,
  602.     "in a north-south-east Tee in the very low tunnel", "").
  603. Connect(r_sewerTunnel50, r_sewerTunnel51, D_EAST).
  604.  
  605. define tp_proving2 r_sewerTunnel52 CreateThing(r_provingTunnelD).
  606. SetupRoomP(r_sewerTunnel52,
  607.     "in a south and east corner in the very low tunnel", "").
  608. Connect(r_sewerTunnel51, r_sewerTunnel52, D_NORTH).
  609.  
  610. define tp_proving2 r_sewerTunnel53 CreateThing(r_provingTunnelD).
  611. SetupRoomP(r_sewerTunnel53,
  612.     "in a north and west corner in the very low tunnel", "").
  613. Connect(r_sewerTunnel52, r_sewerTunnel53, D_EAST).
  614.  
  615. define tp_proving2 r_sewerTunnel54 CreateThing(r_provingTunnelD).
  616. SetupRoomP(r_sewerTunnel54, "in a very low north-south tunnel", "").
  617. Connect(r_sewerTunnel53, r_sewerTunnel54, D_NORTH).
  618.  
  619. define tp_proving2 r_sewerTunnel55 CreateThing(r_provingTunnelD).
  620. SetupRoomP(r_sewerTunnel55,
  621.     "in a south and west corner in the very low tunnel", "").
  622. Connect(r_sewerTunnel54, r_sewerTunnel55, D_NORTH).
  623.  
  624. define tp_proving2 r_sewerTunnel56 CreateThing(r_provingTunnelD).
  625. SetupRoomP(r_sewerTunnel56, "in a very low east-west tunnel", "").
  626. Connect(r_sewerTunnel55, r_sewerTunnel56, D_WEST).
  627. Connect(r_sewerTunnel42, r_sewerTunnel56, D_EAST).
  628.  
  629. define tp_proving2 r_sewerTunnel57 CreateThing(r_provingTunnelD).
  630. SetupRoomP(r_sewerTunnel57, "at the south end of the very low tunnel",
  631.     "A tiny, badly carved crawlway heads off to the southwest.").
  632. Connect(r_sewerTunnel51, r_sewerTunnel57, D_SOUTH).
  633. Scenery(r_sewerTunnel57, "crawlway;tiny,badly,carved").
  634. define tp_proving2 PR_TUNNEL57_ID NextEffectId().
  635. define tp_proving2 proc drawTunnel57()void:
  636.  
  637.     if not KnowsEffect(nil, PR_TUNNEL57_ID) then
  638.     DefineEffect(nil, PR_TUNNEL57_ID);
  639.     GSetImage(nil, "pr_tunnel57");
  640.     IfFound(nil);
  641.         GShowImage(nil, "", 0, 0, 160, 100, 0, 0);
  642.     Else(nil);
  643.         GSetPen(nil, C_DARK_GREY);
  644.         GAMove(nil, 0, 0);
  645.         GRectangle(nil, 159, 99, true);
  646.         GSetPen(nil, C_LIGHT_GREY);
  647.         GAMove(nil, 80, 50);
  648.         GEllipse(nil, 14, 8, true);
  649.         GAMove(nil, 65, 0);
  650.         GRectangle(nil, 29, 50, true);
  651.         GPolygonStart(nil);
  652.         GAMove(nil, 0, 99);
  653.         GRDraw(nil, 8, 0);
  654.         GRDraw(nil, 75, -46);
  655.         GRDraw(nil, -6, -6);
  656.         GRDraw(nil, -77, 46);
  657.         GPolygonEnd(nil);
  658.     Fi(nil);
  659.     EndEffect();
  660.     fi;
  661.     CallEffect(nil, PR_TUNNEL57_ID);
  662. corp;
  663. AutoGraphics(r_sewerTunnel57, drawTunnel57).
  664.  
  665. define tp_proving2 r_sewerTunnel58 CreateThing(r_provingTunnel2).
  666. SetupRoomP(r_sewerTunnel58, "in a well-used tunnel crossing", "").
  667. Connect(r_chamberE, r_sewerTunnel58, D_EAST).
  668.  
  669. define tp_proving2 PR_CHAMBER6_ID NextEffectId().
  670. define tp_proving2 proc drawChamber2()void:
  671.  
  672.     if not KnowsEffect(nil, PR_CHAMBER6_ID) then
  673.     DefineEffect(nil, PR_CHAMBER6_ID);
  674.     GSetImage(nil, "pr_chamber6");
  675.     IfFound(nil);
  676.         GShowImage(nil, "", 0, 0, 160, 100, 0, 0);
  677.     Else(nil);
  678.         GSetPen(nil, C_DARK_GREY);
  679.         GAMove(nil, 0, 0);
  680.         GRectangle(nil, 159, 99, true);
  681.  
  682.         GSetPen(nil, C_LIGHT_GREY);
  683.         GAMove(nil, 10, 10);
  684.         GRectangle(nil, 139, 79, true);
  685.         GAMove(nil, 0, 45);
  686.         GRectangle(nil, 159, 10, true);
  687.         GAMove(nil, 33, 0);
  688.         GRectangle(nil, 10, 99, true);
  689.         GAMove(nil, 75, 0);
  690.         GRectangle(nil, 10, 99, true);
  691.         GAMove(nil, 117, 0);
  692.         GRectangle(nil, 10, 99, true);
  693.     Fi(nil);
  694.     EndEffect();
  695.     fi;
  696.     CallEffect(nil, PR_CHAMBER6_ID);
  697. corp;
  698.  
  699. define tp_proving2 CHAMBER6_MAP_GROUP NextMapGroup().
  700.  
  701. define tp_proving2 r_chamber6Model CreateThing(r_provingTunnel2).
  702. RoomName(r_chamber6Model, "Large", "Chamber").
  703. r_chamber6Model@p_MapGroup := CHAMBER6_MAP_GROUP.
  704. r_chamber6Model@p_rDrawAction := drawChamber2.
  705. r_chamber6Model@p_rEnterRoomDraw := EnterRoomDraw.
  706. r_chamber6Model@p_rLeaveRoomDraw := LeaveRoomDraw.
  707. SetThingStatus(r_chamber6Model, ts_readonly).
  708.  
  709. define tp_proving2 proc makeChamber2(int x, y; string name)thing:
  710.     thing chamber;
  711.  
  712.     chamber := CreateThing(r_chamber6Model);
  713.     chamber@p_rName := name;
  714.     chamber@p_rContents := CreateThingList();
  715.     chamber@p_rExits := CreateIntList();
  716.     chamber@p_rCursorX := x;
  717.     chamber@p_rCursorY := y;
  718.     SetThingStatus(chamber, ts_wizard);
  719.     chamber
  720. corp;
  721.  
  722. define tp_proving2 r_chamber6W makeChamber2(19, 47,
  723.     "on the west side of the chamber").
  724. Connect(r_sewerTunnel58, r_chamber6W, D_EAST).
  725.  
  726. define tp_proving2 r_chamber6NW makeChamber2(35, 12,
  727.     "in the north-west corner of the chamber").
  728. Connect(r_chamber6W, r_chamber6NW, D_NORTH).
  729.  
  730. define tp_proving2 r_chamber6N makeChamber2(77, 12,
  731.     "on the north side of the chamber").
  732. Connect(r_chamber6NW, r_chamber6N, D_EAST).
  733. Connect(r_chamber6W, r_chamber6N, D_NORTHEAST).
  734.  
  735. define tp_proving2 r_chamber6NE makeChamber2(119, 12,
  736.     "in the north-east corner of the chamber").
  737. Connect(r_chamber6N, r_chamber6NE, D_EAST).
  738.  
  739. define tp_proving2 r_chamber6E makeChamber2(141, 47,
  740.     "on the west side of the chamber").
  741. Connect(r_chamber6NE, r_chamber6E, D_SOUTH).
  742. Connect(r_chamber6N, r_chamber6E, D_SOUTHEAST).
  743.  
  744. define tp_proving2 r_chamber6SE makeChamber2(119, 81,
  745.     "in the south-east corner of the chamber").
  746. Connect(r_chamber6E, r_chamber6SE, D_SOUTH).
  747.  
  748. define tp_proving2 r_chamber6S makeChamber2(77, 81,
  749.     "on the south side of the chamber").
  750. Connect(r_chamber6SE, r_chamber6S, D_WEST).
  751. Connect(r_chamber6E, r_chamber6S, D_SOUTHWEST).
  752. Connect(r_chamber6W, r_chamber6S, D_SOUTHEAST).
  753.  
  754. define tp_proving2 r_chamber6SW makeChamber2(35, 81,
  755.     "in the south-west corner of the chamber").
  756. Connect(r_chamber6S, r_chamber6SW, D_WEST).
  757. Connect(r_chamber6W, r_chamber6SW, D_SOUTH).
  758.  
  759. define tp_proving2 r_chamber6Center makeChamber2(77, 47,
  760.     "in the middle of the chamber").
  761. Connect(r_chamber6W, r_chamber6Center, D_EAST).
  762. Connect(r_chamber6NW, r_chamber6Center, D_SOUTHEAST).
  763. Connect(r_chamber6N, r_chamber6Center, D_SOUTH).
  764. Connect(r_chamber6NE, r_chamber6Center, D_SOUTHWEST).
  765. Connect(r_chamber6E, r_chamber6Center, D_WEST).
  766. Connect(r_chamber6SE, r_chamber6Center, D_NORTHWEST).
  767. Connect(r_chamber6S, r_chamber6Center, D_NORTH).
  768. Connect(r_chamber6SW, r_chamber6Center, D_NORTHEAST).
  769.  
  770. define tp_proving2 r_goblinArmoury CreateThing(r_indoors).
  771. SetupRoomP(r_goblinArmoury, "in a goblin armoury",
  772.     "The goblins may not be the friendliest folks when you meet them in "
  773.     "distant tunnels, but they certainly are fine craftsmen. The weapons "
  774.     "and armour for sale here (even to non-goblins!) are all fine items.").
  775. AutoGraphics(r_goblinArmoury, AutoOpenRoom).
  776. AutoPens(r_goblinArmoury, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  777. Connect(r_chamber6NE, r_goblinArmoury, D_NORTH).
  778. UniConnect(r_goblinArmoury, r_chamber6NE, D_EXIT).
  779. MakeStore(r_goblinArmoury).
  780.  
  781. define tp_proving o_goblinSword WeaponSell(r_goblinArmoury, "sword;goblin",
  782.     "The goblin sword is a good weapon. Its feel is a bit strange, and you "
  783.     "can't read the runes carved into it, but you can handle it just fine.",
  784.     300, 1, 0, 1, 0, 0, 8, 13).
  785.  
  786. ignore WeaponSell(r_goblinArmoury, "axe;goblin",
  787.     "The goblin axe is not very big, but makes an effective weapon. The "
  788.     "handle is a bit large for you, but the weight of the head and the "
  789.     "length of the handle more than compensate.",
  790.     150, 1, 0, 0, 0, 0, 12, 9).
  791.  
  792. ignore WeaponSell(r_goblinArmoury, "armour;goblin,leather",
  793.     "The goblins make good armour - this one is made of thick boiled leather "
  794.     "reinforced with numerous tiny rivets, and embellished with strange "
  795.     "carvings and some shoulder spikes. It doesn't fit very well, however.",
  796.     250, 0, 0, -1, -3, 0, 0, 0).
  797.  
  798. ignore WeaponSell(r_goblinArmoury, "mail;goblin,chain.chain",
  799.     "This is another example of fine goblin workmanship. However, since it "
  800.     "was made for a goblin, it doesn't fit you very well.",
  801.     900, -1, 0, -1, -5, 0, 0, 0).
  802.  
  803. ignore WeaponSell(r_goblinArmoury, "mail;goblin,plate.plate",
  804.     "This plate mail is fairly adjustable, so even though it was made for a "
  805.     "goblin, it works well for you. There are some runes carved on the "
  806.     "inside of each piece - perhaps they are for luck.",
  807.     4000, 0, 1, 1, -6, 0, 0, 0).
  808.  
  809. define tp_proving2 r_goblinHealer CreateThing(r_indoors).
  810. SetupRoomP(r_goblinHealer, "in a goblin apothecary",
  811.     "The goblin running this establishment is a rare item indeed - he is "
  812.     "willing, for money, to help others out. He will sell you healing, "
  813.     "just like the fellow aboveground. His establishment is little more "
  814.     "than a literal hole-in-the-wall, but he seems to know his trade.").
  815. AutoGraphics(r_goblinHealer, AutoOpenRoom).
  816. AutoPens(r_goblinHealer, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  817. Connect(r_chamber6NW, r_goblinHealer, D_NORTH).
  818. UniConnect(r_goblinHealer, r_chamber6NW, D_EXIT).
  819. HealSell(r_goblinHealer, "heal;minor.minor", 20, 6).
  820. HealSell(r_goblinHealer, "heal;small.small", 40, 15).
  821. HealSell(r_goblinHealer, "heal;medium.medium", 100, 40).
  822. HealSell(r_goblinHealer, "heal;large.large", 350, 140).
  823. HealSell(r_goblinHealer, "heal;great.great", 1000, 500).
  824. r_goblinHealer@p_rBuyAction := HealingBuy.
  825.  
  826. define tp_proving2 r_goblinStore CreateThing(r_indoors).
  827. SetupRoomP(r_goblinStore, "in a goblin store",
  828.     "This store is a medium-sized hole carved out of the rock, with some "
  829.     "wooden shelves holding the merchandise. The stock here is pretty "
  830.     "limited, but there are lots of each item that is for sale.").
  831. AutoGraphics(r_goblinStore, AutoOpenRoom).
  832. AutoPens(r_goblinStore, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  833. Scenery(r_goblinStore, "shelf,shelves.merchandise.stock").
  834. Connect(r_chamber6SE, r_goblinStore, D_SOUTH).
  835. UniConnect(r_goblinStore, r_chamber6SE, D_EXIT).
  836. MakeStore(r_goblinStore).
  837. AddObjectForSale(r_goblinStore, o_torch, 15, buyTorch).
  838. AddObjectForSale(r_goblinStore, o_sack, 30, nil).
  839. AddObjectForSale(r_goblinStore, o_refill, 75, nil).
  840. ignore WeaponSell(r_goblinStore, "shield;troll-hide.shield;troll,hide",
  841.     "The troll-hide shield, being made from the hide of a cave troll, "
  842.     "is much stronger than a regular hide shield.",
  843.     100, 0, 0, 0, 0, -2, 0, 0).
  844.  
  845. define tp_proving2 o_mushroom AddForSale(r_goblinStore, "mushroom;healing",
  846.     "", 25, nil).
  847. define tp_proving2 proc mushroomEat()status:
  848.     thing th, me;
  849.     int current, max;
  850.  
  851.     th := It();
  852.     me := Me();
  853.     Print("You eat the mushroom. It makes you feel better.\n");
  854.     current := me@p_pHitNow;
  855.     max := me@p_pHitMax;
  856.     if current ~= max then
  857.     current := current + Random(10) + 10;
  858.     if current > max then
  859.         current := max;
  860.     fi;
  861.     me@p_pHitNow := current;
  862.     fi;
  863.     if CanSee(Here(), me) and not me@p_pHidden then
  864.     OPrint(FormatName(me@p_pName) + " eats a mushroom.\n");
  865.     fi;
  866.     ClearThing(th);
  867.     DelElement(me@p_pCarrying, th);
  868.     succeed
  869. corp;
  870. o_mushroom@p_oEatChecker := mushroomEat.
  871. o_mushroom@p_oSmellString :=
  872.     "The mushroom smells a lot like a normal mushroom, but there is an "
  873.     "added tang to the odour.".
  874. o_mushroom@p_oTouchString :=
  875.     "The mushroom is a bit past its prime, so it is a little bit soft, "
  876.     "but it is still edible.".
  877.  
  878. define tp_proving2 r_goblinRoom CreateThing(r_indoors).
  879. SetupRoomP(r_goblinRoom, "in an unused room", "").
  880. AutoGraphics(r_goblinRoom, AutoOpenRoom).
  881. AutoPens(r_goblinRoom, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  882. Connect(r_chamber6SW, r_goblinRoom, D_SOUTH).
  883. UniConnect(r_goblinRoom, r_chamber6SW, D_EXIT).
  884.  
  885. define tp_proving2 r_provingTunnel3 CreateThing(r_provingTunnel2).
  886. define tp_proving2 proc drawTunnel3()void:
  887.     thing here;
  888.     list int exits;
  889.  
  890.     AutoTunnels();
  891.     here := Here();
  892.     exits := here@p_rExits;
  893.     GSetPen(nil, C_BROWN);
  894.     if here@p_rNorth ~= nil and FindElement(exits, D_NORTH) = -1 then
  895.     GAMove(nil, 75, 41);
  896.     HorizontalDoor();
  897.     fi;
  898.     if here@p_rEast ~= nil and FindElement(exits, D_EAST) = -1 then
  899.     GAMove(nil, 95, 46);
  900.     VerticalDoor();
  901.     fi;
  902.     if here@p_rSouth ~= nil and FindElement(exits, D_SOUTH) = -1 then
  903.     GAMove(nil, 75, 59);
  904.     HorizontalDoor();
  905.     fi;
  906.     if here@p_rWest ~= nil and FindElement(exits, D_WEST) = -1 then
  907.     GAMove(nil, 64, 46);
  908.     VerticalDoor();
  909.     fi;
  910. corp;
  911. AutoGraphics(r_provingTunnel3, drawTunnel3).
  912. AutoPens(r_provingTunnel3, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  913. SetThingStatus(r_provingTunnel3, ts_wizard).
  914.  
  915. define tp_proving2 r_sewerTunnel59 CreateThing(r_provingTunnel3).
  916. SetupRoomP(r_sewerTunnel59, "at a tunnel tee", "").
  917. Connect(r_chamber6E, r_sewerTunnel59, D_EAST).
  918.  
  919. define tp_proving2 r_sewerTunnel60 CreateThing(r_provingTunnel3).
  920. SetupRoomP(r_sewerTunnel60, "in a north-south tunnel", "").
  921. Connect(r_sewerTunnel59, r_sewerTunnel60, D_NORTH).
  922.  
  923. define tp_proving2 r_sewerTunnel61 CreateThing(r_provingTunnel3).
  924. SetupRoomP(r_sewerTunnel61, "at a south/west corner", "").
  925. Connect(r_sewerTunnel60, r_sewerTunnel61, D_NORTH).
  926.  
  927. define tp_proving2 r_sewerTunnel62 CreateThing(r_provingTunnel3).
  928. SetupRoomP(r_sewerTunnel62, "in an east-west tunnel", "").
  929. Connect(r_sewerTunnel61, r_sewerTunnel62, D_WEST).
  930.  
  931. define tp_proving2 r_sewerTunnel63 CreateThing(r_provingTunnel3).
  932. SetupRoomP(r_sewerTunnel63, "at a tunnel tee", "").
  933. Connect(r_sewerTunnel62, r_sewerTunnel63, D_WEST).
  934. Connect(r_chamber6N, r_sewerTunnel63, D_NORTH).
  935.  
  936. define tp_proving2 r_sewerTunnel64 CreateThing(r_provingTunnel3).
  937. SetupRoomP(r_sewerTunnel64, "in an east-west tunnel", "").
  938. Connect(r_sewerTunnel63, r_sewerTunnel64, D_WEST).
  939.  
  940. define tp_proving2 r_sewerTunnel65 CreateThing(r_provingTunnel3).
  941. SetupRoomP(r_sewerTunnel65, "at a south/east corner", "").
  942. Connect(r_sewerTunnel64, r_sewerTunnel65, D_WEST).
  943.  
  944. define tp_proving2 r_sewerTunnel66 CreateThing(r_provingTunnel3).
  945. SetupRoomP(r_sewerTunnel66, "in a north-south tunnel", "").
  946. Connect(r_sewerTunnel65, r_sewerTunnel66, D_SOUTH).
  947. Connect(r_sewerTunnel58, r_sewerTunnel66, D_NORTH).
  948.  
  949. define tp_proving2 r_sewerTunnel67 CreateThing(r_provingTunnel3).
  950. SetupRoomP(r_sewerTunnel67, "in a north-south tunnel", "").
  951. Connect(r_sewerTunnel58, r_sewerTunnel67, D_SOUTH).
  952.  
  953. define tp_proving2 r_sewerTunnel68 CreateThing(r_provingTunnel3).
  954. SetupRoomP(r_sewerTunnel68, "at a north/east corner", "").
  955. Connect(r_sewerTunnel67, r_sewerTunnel68, D_SOUTH).
  956.  
  957. define tp_proving2 r_sewerTunnel69 CreateThing(r_provingTunnel3).
  958. SetupRoomP(r_sewerTunnel69, "in an east-west tunnel", "").
  959. Connect(r_sewerTunnel68, r_sewerTunnel69, D_EAST).
  960.  
  961. define tp_proving2 r_sewerTunnel70 CreateThing(r_provingTunnel3).
  962. SetupRoomP(r_sewerTunnel70, "at a tunnel tee", "").
  963. Connect(r_sewerTunnel69, r_sewerTunnel70, D_EAST).
  964. Connect(r_chamber6S, r_sewerTunnel70, D_SOUTH).
  965.  
  966. define tp_proving2 r_sewerTunnel71 CreateThing(r_provingTunnel3).
  967. SetupRoomP(r_sewerTunnel71, "in an east-west tunnel", "").
  968. Connect(r_sewerTunnel70, r_sewerTunnel71, D_EAST).
  969.  
  970. define tp_proving2 r_sewerTunnel72 CreateThing(r_provingTunnel3).
  971. SetupRoomP(r_sewerTunnel72, "at a north/west corner", "").
  972. Connect(r_sewerTunnel71, r_sewerTunnel72, D_EAST).
  973.  
  974. define tp_proving2 r_sewerTunnel73 CreateThing(r_provingTunnel3).
  975. SetupRoomP(r_sewerTunnel73, "in a north-south tunnel", "").
  976. Connect(r_sewerTunnel72, r_sewerTunnel73, D_NORTH).
  977. Connect(r_sewerTunnel59, r_sewerTunnel73, D_SOUTH).
  978.  
  979. define tp_proving2 r_shaman CreateThing(r_indoors).
  980. SetupRoomP(r_shaman, "in the shaman's room",
  981.     "The goblin shaman offers a few strange items for sale. His room is "
  982.     "little different from the others around it.").
  983. RoomName(r_shaman, "Shaman's", "room").
  984. AutoGraphics(r_shaman, AutoClosedRoom).
  985. AutoPens(r_shaman, C_DARK_GREY, C_LIGHT_GREY, C_BLACK, C_BROWN).
  986. Scenery(r_shaman,
  987.     "cot;wooden."
  988.     "table;sturdy,wooden."
  989.     "chair;pair,of,unpadded."
  990.     "chest;small clothes."
  991.     "furniture,furnishing;sparse").
  992. HUniConnect(r_sewerTunnel64, r_shaman, D_SOUTH).
  993. UniConnect(r_shaman, r_sewerTunnel64, D_NORTH).
  994. UniConnect(r_shaman, r_sewerTunnel64, D_EXIT).
  995. MakeStore(r_shaman).
  996. define tp_proving2 o_strengthPotion AddForSale(r_shaman, "potion;strength",
  997.     "The strength potion comes in a small red bottle. It appears to contain "
  998.     "enough of the potion for one dose.",
  999.     1000, nil).
  1000. define tp_proving2 proc strengthCancel(thing th)void:
  1001.     thing who;
  1002.  
  1003.     who := th@p_oConsumer;
  1004.     who@p_pStrength := who@p_pStrength - 1;
  1005.     ClearThing(th);
  1006.     DelElement(who@p_pHiddenList, th);
  1007.     SPrint(who, "You suddenly feel let down.\n");
  1008. corp;
  1009. define tp_proving2 proc strengthDrink()status:
  1010.     thing me, it;
  1011.  
  1012.     me := Me();
  1013.     it := It();
  1014.     it@p_oConsumer := me;
  1015.     me@p_pStrength := me@p_pStrength + 1;
  1016.     Print("Yuck! That was awful!\n");
  1017.     if not me@p_pHidden then
  1018.     OPrint(FormatName(me@p_pName) + " drinks an unpleasant potion.\n");
  1019.     else
  1020.     OPrint("You hear a gagging sound.\n");
  1021.     fi;
  1022.     AddTail(me@p_pHiddenList, it);
  1023.     DelElement(me@p_pCarrying, it);
  1024.     DoAfter(5 * 60, it, strengthCancel);
  1025.     succeed
  1026. corp;
  1027. o_strengthPotion@p_oEatChecker := strengthDrink.
  1028. define tp_proving2 o_speedPotion AddForSale(r_shaman, "potion;speed",
  1029.     "The speed potion comes in a small green bottle. It appears to contain "
  1030.     "enough of the potion for one dose.",
  1031.     1000, nil).
  1032. define tp_proving2 proc speedCancel(thing th)void:
  1033.     thing who;
  1034.  
  1035.     who := th@p_oConsumer;
  1036.     who@p_pSpeed := who@p_pSpeed - 1;
  1037.     ClearThing(th);
  1038.     DelElement(who@p_pHiddenList, th);
  1039.     SPrint(who, "You suddenly feel let down.\n");
  1040. corp;
  1041. define tp_proving2 proc speedDrink()status:
  1042.     thing me, it;
  1043.  
  1044.     me := Me();
  1045.     it := It();
  1046.     it@p_oConsumer := me;
  1047.     me@p_pSpeed := me@p_pSpeed + 1;
  1048.     Print("Yech! That was terrible!\n");
  1049.     if not me@p_pHidden then
  1050.     OPrint(FormatName(me@p_pName) + " drinks an unpleasant potion.\n");
  1051.     else
  1052.     OPrint("You hear a gagging sound.\n");
  1053.     fi;
  1054.     AddTail(me@p_pHiddenList, it);
  1055.     DelElement(me@p_pCarrying, it);
  1056.     DoAfter(5 * 60, it, speedCancel);
  1057.     succeed
  1058. corp;
  1059. o_speedPotion@p_oEatChecker := speedDrink.
  1060. define tp_proving2 o_excessPotion AddForSale(r_shaman, "potion;excess",
  1061.     "The excess potion comes in a small blue bottle. It appears to contain "
  1062.     "enough of the potion for one dose.",
  1063.     1000, nil).
  1064. define tp_proving2 proc excessCancel(thing th)void:
  1065.     thing who;
  1066.  
  1067.     who := th@p_oConsumer;
  1068.     who@p_pHitMax := who@p_pHitMax - 10;
  1069.     ClearThing(th);
  1070.     DelElement(who@p_pHiddenList, th);
  1071.     SPrint(who, "You suddenly feel let down.\n");
  1072. corp;
  1073. define tp_proving2 proc excessDrink()status:
  1074.     thing me, it;
  1075.  
  1076.     me := Me();
  1077.     it := It();
  1078.     it@p_oConsumer := me;
  1079.     me@p_pHitMax := me@p_pHitMax + 10;
  1080.     Print("Ug! That was vile!\n");
  1081.     if not me@p_pHidden then
  1082.     OPrint(FormatName(me@p_pName) + " drinks an unpleasant potion.\n");
  1083.     else
  1084.     OPrint("You hear a gagging sound.\n");
  1085.     fi;
  1086.     AddTail(me@p_pHiddenList, it);
  1087.     DelElement(me@p_pCarrying, it);
  1088.     DoAfter(60 * 60, it, excessCancel);
  1089.     succeed
  1090. corp;
  1091. o_excessPotion@p_oEatChecker := excessDrink.
  1092.  
  1093. define tp_proving2 r_cell2 CreateThing(r_indoors).
  1094. r_cell2@p_rName := "in a featureless room".
  1095. r_cell2@p_rDesc :=
  1096.     "The room is sparsely furnished with a wooden cot, a sturdy wooden "
  1097.     "table with a pair of unpadded chairs, and a small clothes chest.".
  1098. AutoGraphics(r_cell2, AutoClosedRoom).
  1099. AutoPens(r_cell2, C_DARK_GREY, C_LIGHT_GREY, C_BLACK, C_BROWN).
  1100. Scenery(r_cell2,
  1101.     "cot;wooden."
  1102.     "table;sturdy,wooden."
  1103.     "chair;pair,of,unpadded."
  1104.     "chest;small clothes."
  1105.     "furniture,furnishing;sparse").
  1106. SetThingStatus(r_cell2, ts_readonly).
  1107.  
  1108. define tp_proving2 proc makeCell2(thing tunnel; int dir)thing:
  1109.     thing cell;
  1110.  
  1111.     cell := CreateThing(r_cell2);
  1112.     cell@p_rContents := CreateThingList();
  1113.     cell@p_rExits := CreateIntList();
  1114.     HUniConnect(tunnel, cell, dir);
  1115.     UniConnect(cell, tunnel, DirBack(dir));
  1116.     UniConnect(cell, tunnel, D_EXIT);
  1117.     SetThingStatus(cell, ts_wizard);
  1118.     cell
  1119. corp;
  1120.  
  1121. ignore makeCell2(r_sewerTunnel59, D_EAST).
  1122. ignore makeCell2(r_sewerTunnel60, D_EAST).
  1123. ignore makeCell2(r_sewerTunnel60, D_WEST).
  1124. ignore makeCell2(r_sewerTunnel61, D_EAST).
  1125. ignore makeCell2(r_sewerTunnel61, D_NORTH).
  1126. ignore makeCell2(r_sewerTunnel62, D_NORTH).
  1127. ignore makeCell2(r_sewerTunnel62, D_SOUTH).
  1128. ignore makeCell2(r_sewerTunnel63, D_NORTH).
  1129. ignore makeCell2(r_sewerTunnel64, D_NORTH).
  1130. ignore makeCell2(r_sewerTunnel65, D_NORTH).
  1131. ignore makeCell2(r_sewerTunnel65, D_WEST).
  1132. ignore makeCell2(r_sewerTunnel66, D_EAST).
  1133. ignore makeCell2(r_sewerTunnel66, D_WEST).
  1134. ignore makeCell2(r_sewerTunnel67, D_EAST).
  1135. ignore makeCell2(r_sewerTunnel67, D_WEST).
  1136. ignore makeCell2(r_sewerTunnel68, D_WEST).
  1137. ignore makeCell2(r_sewerTunnel68, D_SOUTH).
  1138. ignore makeCell2(r_sewerTunnel69, D_NORTH).
  1139. ignore makeCell2(r_sewerTunnel69, D_SOUTH).
  1140. ignore makeCell2(r_sewerTunnel70, D_SOUTH).
  1141. ignore makeCell2(r_sewerTunnel71, D_NORTH).
  1142. ignore makeCell2(r_sewerTunnel71, D_SOUTH).
  1143. ignore makeCell2(r_sewerTunnel72, D_SOUTH).
  1144. ignore makeCell2(r_sewerTunnel72, D_EAST).
  1145. ignore makeCell2(r_sewerTunnel73, D_EAST).
  1146. ignore makeCell2(r_sewerTunnel73, D_WEST).
  1147.  
  1148. define tp_proving2 r_crawlway CreateThing(r_tunnel).
  1149. AutoGraphics(r_crawlway, AutoPaths).
  1150. AutoPens(r_crawlway, C_DARK_GREY, C_LIGHT_GREY, 0, 0).
  1151. r_crawlway@p_rName := "in a winding crawlway".
  1152. r_crawlway@p_rDark := true.
  1153. SetThingStatus(r_crawlway, ts_readonly).
  1154. monsterSet3(r_crawlway).
  1155.  
  1156. define tp_proving2 proc makeCrawlway(thing previous; int dir)thing:
  1157.     thing crawlway;
  1158.  
  1159.     crawlway := CreateThing(r_crawlway);
  1160.     crawlway@p_rContents := CreateThingList();
  1161.     crawlway@p_rExits := CreateIntList();
  1162.     Connect(previous, crawlway, dir);
  1163.     SetThingStatus(crawlway, ts_wizard);
  1164.     crawlway
  1165. corp;
  1166.  
  1167. define tp_proving2 r_crawlway1 makeCrawlway(r_sewerTunnel57, D_SOUTHWEST).
  1168.  
  1169. define tp_proving2 r_crawlway2 makeCrawlway(r_crawlway1, D_WEST).
  1170.  
  1171. define tp_proving2 r_crawlway3 makeCrawlway(r_crawlway2, D_SOUTHWEST).
  1172. r_crawlway3@p_rDesc := "You can smell something bad nearby.".
  1173. r_crawlway3@p_oSmellString := "Yes, definitely something rotten around here.".
  1174.  
  1175. define tp_proving2 r_sewerChamber5 CreateThing(r_crawlway).
  1176. SetupRoomP(r_sewerChamber5, "in a goblin hideout",
  1177.     "The hideout is littered with just about every unmentionable thing you "
  1178.     "can think of. Small crawlways lead off in several directions.").
  1179. Connect(r_crawlway3, r_sewerChamber5, D_WEST).
  1180. define tp_proving2 PR_CHAMBER5_ID NextEffectId().
  1181. define tp_proving2 proc drawChamber5()void:
  1182.  
  1183.     if not KnowsEffect(nil, PR_CHAMBER5_ID) then
  1184.     DefineEffect(nil, PR_CHAMBER5_ID);
  1185.     GSetImage(nil, "pr_chamber5");
  1186.     IfFound(nil);
  1187.         GShowImage(nil, "", 0, 0, 160, 100, 0, 0);
  1188.     Else(nil);
  1189.         DrawTunnelChamber(C_DARK_GREY, C_LIGHT_GREY);
  1190.         GSetPen(nil, C_LIGHT_GREY);
  1191.         GPolygonStart(nil);
  1192.         GAMove(nil, 159, 0);
  1193.         GRDraw(nil, 0, 6);
  1194.         GRDraw(nil, -76, 47);
  1195.         GRDraw(nil, -6, -6);
  1196.         GRDraw(nil, 74, -47);
  1197.         GPolygonEnd(nil);
  1198.         GAMove(nil, 80, 46);
  1199.         GRectangle(nil, 79, 8, true);
  1200.         GAMove(nil, 75, 50);
  1201.         GRectangle(nil, 10, 49, true);
  1202.         GAMove(nil, 0, 46);
  1203.         GRectangle(nil, 80, 8, true);
  1204.         GPolygonStart(nil);
  1205.         GAMove(nil, 0, 0);
  1206.         GRDraw(nil, 8, 0);
  1207.         GRDraw(nil, 75, 47);
  1208.         GRDraw(nil, -6, 6);
  1209.         GRDraw(nil, -77, -47);
  1210.         GPolygonEnd(nil);
  1211.     Fi(nil);
  1212.     EndEffect();
  1213.     fi;
  1214.     CallEffect(nil, PR_CHAMBER5_ID);
  1215. corp;
  1216. AutoGraphics(r_sewerChamber5, drawChamber5).
  1217. Scenery(r_sewerChamber5, "thing;unmentionable").
  1218. r_sewerChamber5@p_oSmellString :=
  1219.     "The smell of rotten meat, rotten vegetables, rotten breath and rotten "
  1220.     "bodies is nearly overpowering!".
  1221. r_sewerChamber5@p_rLastVisit := 0.
  1222. define tp_proving2 proc chamber5Enter(thing room)void:
  1223.     thing me, monster, shield;
  1224.     int i, now, count;
  1225.     list thing lt;
  1226.  
  1227.     now := Time();
  1228.     me := Me();
  1229.     if me@p_pStandard and now - r_sewerChamber5@p_rLastVisit >= 300 then
  1230.     r_sewerChamber5@p_rLastVisit := now;
  1231.     for i from 0 upto Random(5) + 4 do
  1232.         monster := if Random(10) = 0 then m_fighterGoblin else m_goblin fi;
  1233.         ignore CreateMonster(me, monster, r_sewerChamber5);
  1234.     od;
  1235.     lt := me@p_pCarrying;
  1236.     count := Count(lt);
  1237.     i := 0;
  1238.     while i < count do
  1239.         shield := lt[i];
  1240.         if shield@p_oShieldProt <= o_woodenShield@p_oShieldProt then
  1241.         i := count + 1;
  1242.         else
  1243.         i := i + 1;
  1244.         fi;
  1245.     od;
  1246.     if i = count then
  1247.         DepositClone(r_sewerChamber5, o_woodenShield);
  1248.     fi;
  1249.     fi;
  1250. corp;
  1251. AddAnyEnterAction(r_sewerChamber5, chamber5Enter, false).
  1252.  
  1253. define tp_proving2 r_crawlway4 makeCrawlway(r_sewerChamber5, D_NORTHEAST).
  1254.  
  1255. define tp_proving2 r_crawlway5 makeCrawlway(r_sewerChamber5, D_SOUTH).
  1256.  
  1257. define tp_proving2 r_crawlway6 makeCrawlway(r_crawlway5, D_WEST).
  1258.  
  1259. define tp_proving2 r_crawlway7 makeCrawlway(r_crawlway5, D_SOUTHWEST).
  1260.  
  1261. define tp_proving2 r_crawlway8 makeCrawlway(r_crawlway7, D_SOUTH).
  1262.  
  1263. define tp_proving2 r_crawlway9 makeCrawlway(r_crawlway8, D_NORTHWEST).
  1264.  
  1265. define tp_proving2 r_crawlway10 makeCrawlway(r_crawlway9, D_NORTH).
  1266.  
  1267. define tp_proving2 r_crawlway11 makeCrawlway(r_crawlway10, D_NORTHEAST).
  1268. Connect(r_sewerChamber5, r_crawlway11, D_WEST).
  1269.  
  1270. define tp_proving2 r_crawlway12 makeCrawlway(r_sewerChamber5, D_NORTHWEST).
  1271.  
  1272. define tp_proving2 r_crawlway13 makeCrawlway(r_crawlway12, D_WEST).
  1273.  
  1274. define tp_proving2 r_crawlway14 makeCrawlway(r_crawlway13, D_NORTHWEST).
  1275.  
  1276. define tp_proving2 r_crawlway15 makeCrawlway(r_crawlway14, D_SOUTHWEST).
  1277.  
  1278. define tp_proving2 r_crawlway16 makeCrawlway(r_crawlway15, D_SOUTHWEST).
  1279.  
  1280. define tp_proving r_crawlway17 CreateThing(r_crawlway).
  1281. SetupRoomP(r_crawlway17, "at the end of a crawlway",
  1282.     "You are high up on the north wall of a large cavern. You can drop down "
  1283.     "to the cavern floor, but you would not be able to get back up.").
  1284. Connect(r_crawlway16, r_crawlway17, D_SOUTH).
  1285. Scenery(r_crawlway17, "cavern;large.wall;north.floor;cavern").
  1286.  
  1287. unuse tp_proving2
  1288.